package com.lu.service;

import com.alibaba.fastjson.JSONObject;
import com.lu.client.annotation.RemoteInvoke;
import com.lu.user.model.User;
import com.lu.user.remote.UserRemote;
import org.springframework.stereotype.Service;

/**
 * @author xiaolu
 * @version 1.0
 * @date 2021-02-03 23:44
 */
@Service
public class BasicService {

    @RemoteInvoke
    private UserRemote userRemote;

    public void testSaveUser() {

        User user = new User();
        user.setId(1);
        user.setName("鹿禾");

        Object response = userRemote.saveUser(user);
        System.out.println(JSONObject.toJSONString(response));
    }
}
